#!/usr/bin/python
# -*- coding: utf-8 -*-


# import winsound
import mp3play
import time


play_times = 100000

file_list = [	"guanjia.mp3",
				"weather.mp3", 
				"open_ac.mp3",
			]

cnt = 0
while cnt < play_times:
	cnt += 1
	print 'In loop %d' % cnt

	# here is user defination

	# for audio in file_list:
		# print 'start to play', audio
		# playfile = mp3play.load(audio)
		# playfile.play()
		# time.sleep(5)
		# playfile.stop()



	print 'start to play ' + "guanjia.mp3"
	playfile = mp3play.load("guanjia.mp3")
	playfile.play()
	time.sleep(3)
	playfile.stop()

	print 'start to play ' + "weather.mp3"
	playfile = mp3play.load("weather.mp3")
	playfile.play()
	time.sleep(10)
	playfile.stop()

	print 'start to play ' + "open_ac.mp3"
	playfile = mp3play.load("open_ac.mp3")
	playfile.play()
	time.sleep(5)
	playfile.stop()

